package com.sdhs.safetymanage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.safetymanage.mapper.SafetyProjectMapper;
import com.sdhs.safetymanage.domain.SafetyProject;
import com.sdhs.safetymanage.service.ISafetyProjectService;

/**
 * 安全推送项目管理ServiceImpl
 * 
 * @author andong
 * @date 2025-06-27
 */
@Service
public class SafetyProjectServiceImpl implements ISafetyProjectService 
{
    @Autowired
    private SafetyProjectMapper safetyProjectMapper;

    /**
     * 查询安全推送项目管理
     * 
     * @param id 安全推送项目管理主键
     * @return 安全推送项目管理
     */
    @Override
    public SafetyProject selectSafetyProjectById(Long id)
    {
        return safetyProjectMapper.selectSafetyProjectById(id);
    }
    /**
     * 根据创建人查询安全项目的id和人员表的电话号码
     * */
    @Override
    public SafetyProject selectSafetyProjectByCreate(String create)
    {
        return safetyProjectMapper.selectSafetyProjectByCreate(create);
    }

    /**
     * 查询安全推送项目管理列表
     * 
     * @param safetyProject 安全推送项目管理
     * @return 安全推送项目管理集合
     */
    @Override
    public List<SafetyProject> selectSafetyProjectList(SafetyProject safetyProject)
    {
        return safetyProjectMapper.selectSafetyProjectList(safetyProject);
    }

    /**
     * 新增安全推送项目管理
     * 
     * @param safetyProject 安全推送项目管理
     * @return 结果
     */
    @Override
    public int insertSafetyProject(SafetyProject safetyProject)
    {
        return safetyProjectMapper.insertSafetyProject(safetyProject);
    }

    /**
     * 修改安全推送项目管理
     * 
     * @param safetyProject 安全推送项目管理
     * @return 结果
     */
    @Override
    public int updateSafetyProject(SafetyProject safetyProject)
    {
        return safetyProjectMapper.updateSafetyProject(safetyProject);
    }

    /**
     * 批量删除安全推送项目管理
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    @Override
    public int deleteSafetyProjectByIds(Long[] ids)
    {
        return safetyProjectMapper.deleteSafetyProjectByIds(ids);
    }

    /**
     * 删除安全推送项目管理信息
     * 
     * @param id 安全推送项目管理主键
     * @return 结果
     */
    @Override
    public int deleteSafetyProjectById(Long id)
    {
        return safetyProjectMapper.deleteSafetyProjectById(id);
    }
}